home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / comm / faxhvn20.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-12-08  |  5KB  |  121 lines

  1. Echo off
  2. REM *********************************************************************/
  3. REM                                                                     */
  4. REM   SYSTEM       : FAXHAVEN                                           */
  5. REM   COPYRIGHT    : (c) 1995 HTF CONSULTING                            */
  6. REM                                                                     */
  7. REM *********************************************************************/
  8. REM                                                                     */
  9. REM   BAT file name: Install.bat                                        */
  10. REM   DESCRIPTION  : This batch file drives the Installation prodecure  */
  11. REM                  for the FAXHAVEN product                           */
  12. REM                  Install Batch file for One-Step FAXHAVEN           */
  13. REM                                                                     */
  14. REM *********************************************************************/
  15. REM
  16. CLS
  17. Echo *************************************************************************
  18. Echo * Welcome to the FAXHAVEN Installation Procedure                        *
  19. Echo * Copyright (C) 1995 HTF Consulting                                     *
  20. Echo *************************************************************************
  21. Echo *
  22. Echo To install FAXHAVEN into the directory C:\FAXHAVEN, just enter "Install"
  23. Echo To install FAXHAVEN into any other directory,  enter "Install X:\dirname"
  24. Echo Where 'X' is the drive name ( C, D, E, etc.) & "dirname" is the directory.
  25. Echo Example(1): "INSTALL "
  26. Echo Example(2): "INSTALL C:\MYFAXDIR"
  27. Echo Example(3): "INSTALL D:\FAXHAVEN"
  28. Echo *
  29. if "%1" == "" goto verify
  30.  
  31. Echo WARNING!!! If you have entered a directory name without a drive letter
  32. Echo or a drive letter without a directory name the installation will fail.
  33. Echo Compare your input to the examples above.
  34. Echo YOUR INPUT WAS:  "%0 %1"
  35. Echo *
  36.  
  37. :verify
  38. if     "%1" == "" Echo Will install FAXHAVEN into the drive:directory  C:\FAXHAVEN
  39. if not "%1" == "" Echo Will install FAXHAVEN into the drive:directory  %1
  40. Echo *
  41. Echo Enter [CNTL_C] to abort, OR...
  42. Pause
  43.  
  44. if exist c:\fh.bat goto previnstl
  45. REM if     "%1" == "" if exist C:\FAXHAVEN\*.* goto previnstl
  46. REM if not "%1" == "" if exist %1\*.* goto previnstl
  47. goto install
  48.  
  49. :previnstl
  50. CLS
  51. Echo ATTENTION! ATTENTION! ATENTION!
  52. Echo A previous installation of FAXHAVEN is detected.  You must completely remove
  53. Echo FAXHAVEN before re-installing. Contact HTF Consulting (510) 521-1689
  54. goto Abort
  55.  
  56. :install
  57. CLS
  58. Echo When the installation is complete the screen will clear and informative
  59. Echo messages will appear!
  60. Echo *
  61. Echo Copying files .....
  62.  
  63. if not "%1" == "" goto Userdir
  64.  
  65. mkdir c:\FAXHAVEN
  66. copy *.* c:\FAXHAVEN
  67. Setpath.exe FH    FAXHAVEN
  68. Setpath.exe HQFAX FAXHAVEN
  69. erase c:\faxhaven\setpath.exe
  70. erase c:\faxhaven\install.bat
  71. goto Quit
  72.  
  73. :Userdir
  74. mkdir %1
  75. copy *.* %1
  76. Setpath.exe FH    %1
  77. Setpath.exe HQFAX %1
  78. erase %1\setpath.exe
  79. erase %1\install.bat
  80.  
  81. :Quit
  82. REM CLS
  83. REM Call HQFinfo.bat
  84. REM Echo Print this screen if you like, and then ...
  85. REM pause
  86. CLS
  87. Echo **** ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! ****
  88. Echo *
  89. if     "%1" == "" Echo FAXHAVEN is installed into the directory  C:\FAXHAVEN.
  90. if not "%1" == "" Echo FAXHAVEN is installed into the directory  %1.
  91. Echo *
  92. Echo New users are encouraged to study and excercise the tutorial in the
  93. Echo First Time Use section of the Readme file "Readme.FH".
  94. Echo When you contact us for technical support, we will be happy to assist you,
  95. Echo but we will want to know right away how far you got with the tutorial.
  96. Echo *
  97. Echo Registered users will want to enter their Registration key into the
  98. Echo Registration key field in the FAXHAVEN Configuration screen.
  99. Echo *
  100. Echo More information follows.
  101. Pause
  102. Echo You may execute FAXHAVEN from any directory if the root directory (C:\;) is in
  103. Echo your current PATH. Otherwise you may execute FAXHAVEN from the root directory.
  104. Echo Your current PATH is:
  105. PATH
  106. PATH C:\;%path%
  107. Echo *
  108. Echo Your current PATH has been modified to include the root directory (C:\;).
  109. Echo Your autoexec.bat file has *NOT* been modified.
  110. Echo You may wish to update the PATH statement in your autoexec.bat file.
  111. Echo *
  112. Echo To start FAXHAVEN, just enter "FH" at the DOS prompt.
  113. Echo Monochrome screen users must enter "FH /mono" .
  114. Echo To start HQFAX directly, just enter "HQFAX" at the DOS prompt.
  115. Echo Happy FAXing!
  116. :Abort
  117. :quit
  118. C:
  119. chdir c:\
  120. Echo on
  121.